package com.hall.dao;

import com.hall.pojo.CommentData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CommentMapper {
 int insert(CommentData commentData);
 int update(CommentData commentData);
 int delete(CommentData commentData);
 CommentData get(@Param(value = "id") String id);//获取单条数据
 List<CommentData> findList(CommentData commentData);//查询所有数据

}
